version 15
capture log close
set more off
clear all

*=============================================================================

*** Setup

* Set directories (change file path as desired)
*global user="/Users/mbechtel/Desktop/Dropbox/Climate fairness/06 Empirics/05 DCP data/06 Replication NCC"
global user="/Users/Elisabeth/Dropbox/Climate fairness/06 Empirics/05 DCP data/06 Replication NCC"

cd "$user"
global code="$user/01 Code"
global data="$user/02 Data"
global output="$user/03 Results"

*=============================================================================

*** Data cleaning

* US
do "$code/01-01-01 US prep import"
do "$code/01-01-02 US prep conjoint"
do "$code/01-01-03 US estimate CTB"
do "$code/01-01-04 US alternative conjoint"

* UK
do "$code/01-02-01 UK prep import"
do "$code/01-02-02 UK prep conjoint"
do "$code/01-02-03 UK estimate CTB"

* Germany
do "$code/01-03-01 DE prep import"
do "$code/01-03-02 DE prep conjoint"
do "$code/01-03-03 DE estimate CTB"

* France
do "$code/01-04-01 FR prep import"
do "$code/01-04-02 FR prep conjoint"
do "$code/01-04-03 FR estimate CTB"	

*=============================================================================

*** Assemble data

do "$code/02-01 create pooled data"
do "$code/02-02 calculate weights"
do "$code/02-03 sociodemographic distribution"

*=============================================================================

*** Perform analyses

do "$code/03-01 time path choice analysis"
do "$code/03-02 conjoint analysis"
* text analysis needs to be run separately in R
